import React, { Component } from 'react'
import {Route,Switch,Redirect} from "react-router-dom"
import Home from "../views/home"
import marPro from "../views/marPro"
import Strategy from "../views/Strategy"
import Me from "../views/Me"
import weddOne from "../views/weddOne"
import weddTwo from "../views/weddTwo"
import weddThree from "../views/weddThree"
import Marrreg from  "../views/Marrreg"
import Marrbud from "../views/Marrbud"
import Marrtask from "../views/Marrtask"
import Eleinv from "../views/Eleinv"
import NotFont from "../views/NotFont"
import Insgall from "../views/Insgall"
import hotTop from "../views/hotTop"
import Login from '../views/Login'
import List from "../views/List"
import Detail from "../views/Detail"
import Shop from "../views/Shop"
import Comment from "../views/Comment"
import CustSer from "../views/CustSer"
import News from "../views/News"
 class indexRouter extends Component {
    render() {
        return (
            <div>
                <Switch>
                    <Route path='/weddOne' component={weddOne}/>
                    <Route path='/weddTwo' component={weddTwo}/>
                    <Route path='/weddThree' component={weddThree}/>
                    <Route path='/home'   component={Home}/>
                     <Route path='/marPro' component={marPro}/>
                     <Route path='/Strategy' component={Strategy}/>
                     <Route path='/Me' component={Me}/>
                    <Route path='/List' component={List}/>
                    
                     <Route path='/Eleinv' component={Eleinv}/>
                     <Route path='/Marrreg' component={Marrreg}/>
                     
                     <Route path='/Marrtask' component={Marrtask}/>
                     
                     <Route path='/Insgall' component={Insgall}/>
                     <Route path='/hotTop' component={hotTop}/>
                     <Route path='/Marrbud' component={Marrbud}/>
                     <Route path='/Login' component={Login}/>
                     <Route path='/Detail' component={Detail}/>
                     <Route path='/Shop' component={Shop}/>
                    <Route path='/Comment' component={Comment}/>
                    <Route path='/CustSer' component={CustSer}/>
                    <Route path='/News' component={News}/>
                    
                     
                     <Redirect to='/home' from='/' />
                     
                     <Route path='*' component={NotFont}/>
           
                </Switch>
            </div>
        )
    }
}
export default indexRouter